package com.zxy.service.impl;

import com.zxy.domain.WebUrl;
import com.zxy.mapper.WebUrlMapper;
import com.zxy.service.WebUrlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WebUrlServiceImpl implements WebUrlService {

    @Resource
    private WebUrlMapper webUrlMapper;

    @Override
    public List<WebUrl> findAllWebUrl() {
        return webUrlMapper.findAllWebUrl();
    }

    @Override
    public int updateWebUrlEnable(String url, boolean enable) {
        return webUrlMapper.updateWebUrlEnable(url, enable);
    }
}
